//
//  DHomeViewController.m
//  DFrame
//
//  Created by DaiSuke on 16/8/22.
//  Copyright © 2016年 DaiSuke. All rights reserved.
//

#import "DHomeViewController.h"
#import "ViewController.h"
#import "DUserManager.h"

@interface DHomeViewController ()

@end

@implementation DHomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navLeftItemType = DNavigationItemTypeRightAdd;
    self.navRighItemType = DNavigationItemTypeRightShare;
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

//- (void)baseViewControllerDidClickNavigationLeftBtn:(UIButton *)leftBtn{
//    NSLog(@"baseViewControllerDidClickNavigationLeftBtn");
//}

//- (void)baseViewControllerDidClickNavigationRightBtn:(UIButton *)rightBtn{
//    NSLog(@"baseViewControllerDidClickNavigationRightBtn");
//}

//- (void)baseViewControllerDidClickNavigationTitleBtn:(UIButton *)titleBtn{
//    NSLog(@"baseViewControllerDidClickNavigationTitleBtn");
//}

- (void)baseViewControllerDidClickNavigationBtn:(UIButton *)navBtn isLeft:(BOOL)isLeft{
    if (isLeft) {
        NSLog(@"baseViewControllerDidClickNavigationLeftBtn");
        [self.navigationController pushViewController:[[ViewController alloc] init] animated:YES];
    } else {
        NSLog(@"baseViewControllerDidClickNavigationRightBtn");
        
        [self.networkUserInfo setObject:@(NO) forKey:kParamNoAddLoading];
        DUserManager *manager = [DUserManager getHTTPManagerByDelegate:self info:self.networkUserInfo];
        [manager getAccountWithNotCache];
    }
}


- (void)requestServiceSucceedWithModel:(__kindof DJsonModel *)dataModel userInfo:(NSDictionary *)userInfo{
    DLog(@"%@--%@", dataModel, userInfo);
}

@end
